package com.vdm.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DispatchInfo {
    private Integer id;

    private String dispatchNum;

    private Integer salesmanId;

    private String salesmanName;

    private Integer companyId;

    private String companyName;

    private String companyContactName;

    private String companyContactTel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    private String payType;

    private String carType;

    private String startAddress;

    private Integer vehicleId;

    private String vehicleNum;

    private Integer pilotId;

    private String pilotName;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Short status;

    private Float totalMoney;

    private Float saleMoney;

    private Float realMoney;

    private Float auditMoney;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date auditTime;

    private Float auditFuelMoney;

    private Float auditBridgeMoney;

    private Float auditStopMoney;

    private Float auditRepairMoney;

    private Float auditTireMoney;

    private Float auditSubsidizeMoney;

    private Float auditKilometres;

    private Float aduitOther;

    private Float aduitTotalMoney;

    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDispatchNum() {
        return dispatchNum;
    }

    public void setDispatchNum(String dispatchNum) {
        this.dispatchNum = dispatchNum == null ? null : dispatchNum.trim();
    }

    public Integer getSalesmanId() {
        return salesmanId;
    }

    public void setSalesmanId(Integer salesmanId) {
        this.salesmanId = salesmanId;
    }

    public String getSalesmanName() {
        return salesmanName;
    }

    public void setSalesmanName(String salesmanName) {
        this.salesmanName = salesmanName == null ? null : salesmanName.trim();
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getCompanyContactName() {
        return companyContactName;
    }

    public void setCompanyContactName(String companyContactName) {
        this.companyContactName = companyContactName == null ? null : companyContactName.trim();
    }

    public String getCompanyContactTel() {
        return companyContactTel;
    }

    public void setCompanyContactTel(String companyContactTel) {
        this.companyContactTel = companyContactTel == null ? null : companyContactTel.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType == null ? null : payType.trim();
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType == null ? null : carType.trim();
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress == null ? null : startAddress.trim();
    }

    public Integer getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Integer vehicleId) {
        this.vehicleId = vehicleId;
    }

    public String getVehicleNum() {
        return vehicleNum;
    }

    public void setVehicleNum(String vehicleNum) {
        this.vehicleNum = vehicleNum == null ? null : vehicleNum.trim();
    }

    public Integer getPilotId() {
        return pilotId;
    }

    public void setPilotId(Integer pilotId) {
        this.pilotId = pilotId;
    }

    public String getPilotName() {
        return pilotName;
    }

    public void setPilotName(String pilotName) {
        this.pilotName = pilotName == null ? null : pilotName.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Float getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(String totalMoney) {
        this.totalMoney = Float.parseFloat(totalMoney);
    }

    public Float getSaleMoney() {
        return saleMoney;
    }

    public void setSaleMoney(String saleMoney) {
        this.saleMoney = Float.parseFloat(saleMoney);
    }

    public Float getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(String realMoney) {
        this.realMoney = Float.parseFloat(realMoney);
    }

    public Float getAuditMoney() {
        return auditMoney;
    }

    public void setAuditMoney(Float auditMoney) {
        this.auditMoney = auditMoney;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Float getAuditFuelMoney() {
        return auditFuelMoney;
    }

    public void setAuditFuelMoney(Float auditFuelMoney) {
        this.auditFuelMoney = auditFuelMoney;
    }

    public Float getAuditBridgeMoney() {
        return auditBridgeMoney;
    }

    public void setAuditBridgeMoney(Float auditBridgeMoney) {
        this.auditBridgeMoney = auditBridgeMoney;
    }

    public Float getAuditStopMoney() {
        return auditStopMoney;
    }

    public void setAuditStopMoney(Float auditStopMoney) {
        this.auditStopMoney = auditStopMoney;
    }

    public Float getAuditRepairMoney() {
        return auditRepairMoney;
    }

    public void setAuditRepairMoney(Float auditRepairMoney) {
        this.auditRepairMoney = auditRepairMoney;
    }

    public Float getAuditTireMoney() {
        return auditTireMoney;
    }

    public void setAuditTireMoney(Float auditTireMoney) {
        this.auditTireMoney = auditTireMoney;
    }

    public Float getAuditSubsidizeMoney() {
        return auditSubsidizeMoney;
    }

    public void setAuditSubsidizeMoney(Float auditSubsidizeMoney) {
        this.auditSubsidizeMoney = auditSubsidizeMoney;
    }

    public Float getAuditKilometres() {
        return auditKilometres;
    }

    public void setAuditKilometres(Float auditKilometres) {
        this.auditKilometres = auditKilometres;
    }

    public Float getAduitOther() {
        return aduitOther;
    }

    public void setAduitOther(Float aduitOther) {
        this.aduitOther = aduitOther;
    }

    public Float getAduitTotalMoney() {
        return aduitTotalMoney;
    }

    public void setAduitTotalMoney(Float aduitTotalMoney) {
        this.aduitTotalMoney = aduitTotalMoney;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        return "DispatchInfo{" +
                "id=" + id +
                ", dispatchNum='" + dispatchNum + '\'' +
                ", salesmanId=" + salesmanId +
                ", salesmanName='" + salesmanName + '\'' +
                ", companyId=" + companyId +
                ", companyName='" + companyName + '\'' +
                ", companyContactName='" + companyContactName + '\'' +
                ", companyContactTel='" + companyContactTel + '\'' +
                ", startTime=" + startTime +
                ", payType='" + payType + '\'' +
                ", carType='" + carType + '\'' +
                ", startAddress='" + startAddress + '\'' +
                ", vehicleId=" + vehicleId +
                ", vehicleNum='" + vehicleNum + '\'' +
                ", pilotId=" + pilotId +
                ", pilotName='" + pilotName + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                ", totalMoney=" + totalMoney +
                ", saleMoney=" + saleMoney +
                ", realMoney=" + realMoney +
                ", auditMoney=" + auditMoney +
                ", auditTime=" + auditTime +
                ", auditFuelMoney=" + auditFuelMoney +
                ", auditBridgeMoney=" + auditBridgeMoney +
                ", auditStopMoney=" + auditStopMoney +
                ", auditRepairMoney=" + auditRepairMoney +
                ", auditTireMoney=" + auditTireMoney +
                ", auditSubsidizeMoney=" + auditSubsidizeMoney +
                ", auditKilometres=" + auditKilometres +
                ", aduitOther=" + aduitOther +
                ", aduitTotalMoney=" + aduitTotalMoney +
                ", remark='" + remark + '\'' +
                '}';
    }
}